import Vue from "vue"
import VueRouter from "vue-router"
import MyMain from "@/views/MyMain.vue"
import MyNews from "@/views/MyNews.vue"
import MyPhysic from "@/views/MyPhysic.vue"
import MyDomestic from "@/views/domestic.vue"
import MyInternal from "@/views/MyInternal.vue"
Vue.use(VueRouter)
const router = new VueRouter({
    routes: [
        { path: '/', redirect: '/index' },
        { path: '/main', component: MyMain },
        { path: '/news', component: MyNews  },
        {
            path: '/physic',
            component: MyPhysic,
            children: [
                { path: 'domestic', component: MyDomestic },
                { path: 'internal', component: MyInternal },
            ]
        },
    ]
})
export default router